package com.neusoft.neuiotms.dcom.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.MaintainPlan;
import com.neusoft.neuiotms.dcom.model.enums.MaintainPlanStatus;

public interface MaintainPlanRepository
        extends JpaRepository<MaintainPlan, Long>, CustomizedMaintainPlanRepository {

    MaintainPlan findByName(String name);

    MaintainPlan findByCode(String name);

    List<MaintainPlan> findByStatus(MaintainPlanStatus enable);

}
